<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<style>
.errorblock {
	color: #ff0000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>
</head>
<body>
<p>Please provide your User Name and Password to Login.</p>
<div><c:if test="${not empty error}">
	<div class="errorblock">Your login attempt was not successful,
	try again.<br />
	Caused : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}</div>
</c:if> <spring:url var="authUrl" value="/static/j_spring_security_check" />

<form method="post" class="signin" action="${authUrl}">
<fieldset style="height: 500px;">

<table cellspacing="0" width="300"
	style="border: 1px; border-color: #bfbfbf; border-style: solid; text-align: center; margin-left: auto; margin-right: auto; margin-top: 150px;">
	<tr>
		<td><label for="username_or_email">User Name</label></td>
		<td><input id="username_or_email" name="j_username" type="text" />
		</td>
	</tr>
	<tr>
		<td><label for="password">Password</label></td>
		<td><input id="password" name="j_password" type="password" /></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input id="remember_me" name="_spring_security_remember_me"
			type="checkbox" style="width: 30px;" /> <label for="remember_me"
			class="inline">Remember me</label></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input name="commit" type="submit" value="Sign In"
			class="button" /></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
		<table width="100%">
			<tr>
				<td><small><a href="/account/resend_password">Forgot
				Password?</a></small></td>

			</tr>
		</table>
		</td>
	</tr>

</table>
</fieldset>
</form>
<script type="text/javascript">
document.getElementById('username_or_email').focus();
</script></div>
</body>
</html>